
@import "src/themes/mixins/mixins.scss";
$--font-color:  #fff;
$--background-color: rgba(0,0,0,0.9);
$--controller-background-color: rgba(0,0,0,1);
@include b(videoPlayer) {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: $--background-color;
  color: $--font-color;
  &:hover{
    .el-switch {
      opacity: 1;
      visibility: unset;
    }
  }
  @include e(video) {
    width: 100%;
    height: calc(100% - 0.5rem);
    cursor: pointer;
  }
  @include e(progress-wrap) {
    height: 10px;
    margin-top: -7px;
    @include flexRow(flex-start);
  }
  @include e(control) {
    display: flex;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 0 9px;
    width: calc(100%);
    height: 0.4rem;
    line-height: 0.4rem;
    background-color: $--controller-background-color;
    transition: bottom 0.2s, opacity 0.32s;
    @include m(time) {
      padding: 0 20px;
    }
    // @include m(rightIcons) {
    //   margin: 0 9px 0 20px;
    // }
    // .el-slider {
    //   // flex-grow: 1;
    // }
    .vtx-icon {
      margin: 0 8px;
    }
    &.active {
      bottom: 6px;
      opacity: 1;
    }
  }

  .progress_role {
    position: absolute;
    width: 2px;
    background-color: rgba(21, 206, 21, 0.39);
    pointer-events: none;
  }

  @include e(progress) {
    position: relative;
    // flex-grow: 1;
    width: 100%;
    // background: rgba(235, 228, 228, 0.39);
    display: flex;
    @include flexRow(flex-start);
    &:hover {
      .progress-height {
        height: 10px;
      }
    }
  }

  @include e(progress-default) {
    width: 100%;
    background: rgba(235, 228, 228, 0.39);
    cursor: pointer;
    // transition: all 0.2s ease;
  }


  @include e(progress-inner) {
    width: 30%;
    background: rgb(255, 102, 0);
    position: absolute;
    pointer-events: none;
  }

  .progress-height {
    height: 6px;
    transition: all 0.2s ease;
  }

  .el-switch {
    opacity: 1;
    // visibility: hidden;
    position: absolute;
    bottom: 10px;
    right: 10px;
  }
}
